Changepoint detection is the process of identifying when a data stream or time series shifts from one stable pattern to another, such as a sudden change in average temperature, a jump in stock prices, or a shift in a speaker’s pronunciation pattern. Instead of analyzing the entire dataset at once, changepoint detection works sequentially, monitoring data as it arrives and signaling when the underlying process likely changes. These shifts may reflect real-world events, system faults, or evolving behaviors.
Online Updating
To better understand the changepoint detection, let’s first introduce the idea of online updating.
How can we learn from data streams without storing or revealing everything?
We will use several activities to introduce the idea.
Welford’s Rule
Welford’s rule answers the question in terms of updating mean and variance by introducing the running mean \(\bar{X}_n\) .
The running mean depends only on the previous sample average and the new observation, so it can be updated without recalculating from all raw data.
Can you derive the updating formula for
Sample variance
Likelihood Ratio
Adaptive Learning
Adaptive learning refers to the idea that a system (or learner) continually updates its knowledge or predictions in response to new information, adjusting how much it learns each time based on experience or confidence. Instead of treating all data equally, adaptive learning assigns more weight to recent or reliable information and less to older or uncertain data, by choosing a different learning rate.
A sensor network is a connected system of multiple sensors that work together to monitor, measure, and share information about their environment. Each sensor collects local data, such as temperature, air quality, or vibration, and communicates with others or a central hub to form a more accurate and complete picture of the system being observed. It is popular to have adaptive learning in a sensor network.
Suppose \(x_i^t\) is the data observed by the \(i\)th sensor at time \(t\), then the estimate will be updated by
What about the EWMA and CUSUM? Are these methods also using online updating?
Swinging Door Algorithm
The Swinging Door Algorithm is a lossy down-sampling and compression algorithm for time-series or sequential data. It is designed for streaming or continuous monitoring data where huge numbers of data points are generated, but you don’t want to store every point if many of them lie along a nearly straight trend.
In essence, it monitors whether incoming data continue to lie within a “tolerance corridor” around an implied trend line;
if they do, you skip storing them;
if they diverge enough, you “close the door” (record the last point) and start a new segment.